<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader">
	<form id="outcomeForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="payment/paymentPager.do?funId=${funId}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>申请单号:<input type="text" name="map.paymentNo_L" value="${pager.scMap.paymentNo_L}" size="8">
						收款方:<input type="hidden" name="map.supplierId" id="supplierId" value="${pager.scMap.supplierId}" ></input>					
							<input type="text" id="supplierName" value="${Dict.getAlias('COMPANY',pager.scMap.supplierId)}"size="30" ></input>
						付款帐户:
						<select name="map.paymentType" id="paymentType">
							<option value="">请选择</option>
						<c:forEach items="${cn.e2win.biz.sys.Dict.:getList("PAY_ACCOUNT")}" var="item">
							<option ${pager.scMap.paymentType==item.KEY?'selected':''} value="${item.KEY}">${item.VALUE}</option>
						</c:forEach>
						</select>
						付款日期:<input type="text" name="map.paymentDate_B" class="date textInput readonly valid" value="${pager.scMap.paymentDate_B}" size="10">
						至:<input type="text" name="map.paymentDate_E" class="date textInput readonly valid" value="${pager.scMap.paymentDate_E}" size="10">						
						当前状态:
						<select name="map.applyStatus">
							<option value="">全部</option>
						<c:forEach items="${()
		throws java.io.IOException, javax.servlet.ServletException, javax.servlet.jsp.JspException {
javax.servlet.jsp.PageContext pageContext = null;
java.util.Map<String, String> param = null;
java.util.Map<String, String[]> paramValues = null;
java.util.Map<String, String> header = null;
java.util.Map<String, String[]> headerValues = null;
java.util.Map<String, javax.servlet.http.Cookie> cookie = null;
java.util.Map<String, String> initParam = null;
java.util.Map<String, Object> pageScope = null;
java.util.Map<String, Object> requestScope = null;
java.util.Map<String, Object> sessionScope = null;
java.util.Map<String, Object> applicationScope = null;
return ""+(public String _elExpressioncn.e2win.biz.sys.Dict.:getList('APPLY_STATUS')}" var = "opt">
							<option ${pager.scMap.applyStatus==opt.KEY?'selected':''} value="${opt.KEY}">${opt.VALUE}</option>
						</c:forEach>								
						</select>
	       			</td>
				</tr>
			</table>
       		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar">
	<ul class="toolBar">
		<li class="line">line</li><!-- 
		<li><a class="add" href="payment/toEditPaymentRcd.do?tOf=-1&funId=${funId}" target="navTab" rel="payemntRcdDetail"><span>添加支出记录</span></a></li> -->
		
		<li><a class="icon" href='javascript:exportExcel($("#outcomeForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))'><span>导出Excel</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="75" orderField="paymentNo" <c:if test='${pager.orderField=="paymentNo"}'>class="${param.orderDirection}"</c:if> >申请单号</th>
				<th width="105" orderField="supplierId" <c:if test='${pager.orderField=="supplierId"}'>class="${param.orderDirection}"</c:if> >收款方</th>
				<th width="105" orderField="paymentAct" <c:if test='${pager.orderField=="paymentAct"}'>class="${param.orderDirection}"</c:if> >付款帐户</th>
				<th width="75" orderField="amount" <c:if test='${pager.orderField=="amount"}'>class="${param.orderDirection}"</c:if> >付款金额</th>
				<th width="75" orderField="paymentDate" <c:if test='${pager.orderField=="paymentDate"}'>class="${param.orderDirection}"</c:if> >付款日期</th>
				<th width="55">付款凭证</th>
				<th width="55">付款依据</th>
				<th width="105" orderField="receiveAct" <c:if test='${pager.orderField=="receiveAct"}'>class="${param.orderDirection}"</c:if> >收款方帐户</th>
			    <th>备注</th>
				<th width="105" orderField="createDate" <c:if test='${pager.orderField=="createDate"}'>class="${param.orderDirection}"</c:if> >录入时间</th>
				<th width="65" orderField="createById" <c:if test='${pager.orderField=="createById"}'>class="${param.orderDirection}"</c:if> >录入人</th>
				<th width="55" orderField="applyStatus" <c:if test='${pager.orderField=="applyStatus"}'>class="${param.orderDirection}"</c:if> >当前状态</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_" rel="${item.id}">
					<td align="right">${varStatus.count}</td>
					<td><a target="navTab" href="payment/toEditPayment/${item.Id}.do?action=${action}&todo=${todo}" rel="paymentEditor" title="查看${item.paymentNo}">${item.paymentNo}</td>
					<td>${Dict:getAlias('COMPANY',item.supplierId)}</td>
					<td>${Dict:getAlias('ACT',item.paymentAct)}</td>
					<td align="right">${item.amount}</td>
					<td>${item.paymentDate}</td>
					<td>查看${item.paymentByFileId}</td>
					<td>查看${item.paymentForFileId}</td>
					<td>${Dict:getAlias('ACT',item.receiveAct)}</td>
					<td>${item.remark}</td>
					<td>${item.createDate}</td>
					<td>${Dict:getAlias("USER",item.createById)}</td>
					
					<td>
					    ${Dict:getAlias("APPLY_STATUS",item.currStatus)}
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../../include/pagerDiv.jsp" flush="true" />
